﻿using SqlSugar;

namespace WebAssistant.BusinessLogic.Model
{
    [SugarTable("partners")]
    public class Partners
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public int Id { get; set; }

        /// <summary>
        /// 联系人Id
        /// </summary>
        [SugarColumn(ColumnName = "partner_id")]
        public int PartnerId { get; set; }

        /// <summary>
        /// 联系人名称
        /// </summary>
        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// 显示名称
        /// </summary>
        [SugarColumn(ColumnName = "display_name", IsNullable = true)]
        public string DisplayName { get; set; }

        /// <summary>
        /// 完整地址
        /// </summary>
        [SugarColumn(ColumnName = "contact_address", IsNullable = true)]
        public string ContactAddress { get; set; }
    }
}
